package my;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

@Data
public class Dog {
    @Value("system.os")
    private String name;
    private String color;

    public void say() {
        System.out.println("汪汪汪");
    }

    public Dog(){
        System.out.println("狗创建了");
    }
}